package com.young.mybatis.v2.sqlnode;

import com.young.mybatis.v2.sqlnode.iface.SqlNode;

import java.util.List;

/**
 * 描述:
 *
 * @author BluceYoung
 * @create 2020-07-04 9:41
 * B站：TeacherYoung凌风
 * www.teacheryoung.com
 */
public class MixedSqlNode implements SqlNode {

    private List<SqlNode> sqlNodes;
    public MixedSqlNode(List<SqlNode> sqlNodes){
        this.sqlNodes=sqlNodes;
    }

    public void apply(DynamicContext context) {
        for (SqlNode sqlNode : sqlNodes) {
            sqlNode.apply(context);
        }
    }
}
